import { Route } from '../modals'
import { calculateRoutes } from '../utils'
import { stationMap } from './stations'


let routesN = [
  new Route({
    id: 22,
    name: '津山铁路',
    color: 'black',
    line_number: 2,
    speed: 120,
    points: [
      stationMap['06-027'],
      stationMap['06-013'],
      stationMap['06-030'],
      stationMap['02-001'],
      stationMap['02-005'],
      stationMap['06-006'],
    ],
  }),
  new Route({
    id: 38,
    name: '神黄铁路',
    color: 'black',
    line_number: 2,
    speed: 80,
    points: [
      stationMap['07-001'],
      stationMap['07-006'],
      stationMap['14-007'],
      stationMap['10-023'],
      stationMap['10-022'],
      stationMap['10-021'],
      stationMap['10-013'],
      stationMap['06-028'],
      stationMap['06-047'],
      stationMap['06-031'],
      stationMap['06-048'],
    ],
  }),
  new Route({
    id: 40,
    name: '包神铁路',
    color: 'black',
    line_number: 2,
    speed: 80,
    points: [
      stationMap['14-007'],
      stationMap['07-007'],
      stationMap['07-003'],
      stationMap['07-008'],
      stationMap['07-009'],
    ],
  }),
  new Route({
    id: 39,
    name: '齐北铁路',
    color: 'black',
    line_number: 1,
    speed: 80,
    points: [
      stationMap['03-004'],
      stationMap['03-013'],
      stationMap['03-014'],
      stationMap['03-008'],
      stationMap['03-012'],
      stationMap['03-011'],
      stationMap['03-009'],
      stationMap['03-016'],
      stationMap['03-005'],
      stationMap['03-001'],
    ],
  }),
  new Route({
    id: 41,
    name: '北黑铁路',
    color: 'black',
    line_number: 1,
    speed: 80,
    points: [
      stationMap['03-013'],
      stationMap['03-009'],
      stationMap['03-010'],
      stationMap['03-008'],
    ],
  }),
  new Route({
    id: 42,
    name: '京九铁路',
    color: 'black',
    line_number: 2,
    speed: 120,
    points: [
      stationMap['01-023'],
      stationMap['06-013'],
      stationMap['06-012'],
      stationMap['06-047'],
      stationMap['06-046'],
      stationMap['11-002'],
      stationMap['11-022'],
      stationMap['12-013'],
    ],
  }),
]

let routesD = [
  new Route({
    id: 24,
    name: '秦沈客专',
    color: 'green',
    line_number: 2,
    speed: 200,
    points: [
      stationMap['06-009'],
      stationMap['05-058'],
      stationMap['05-059'],
      stationMap['05-060'],
      stationMap['05-061'],
      stationMap['05-062'],
      stationMap['05-063'],
      stationMap['05-064'],
      stationMap['05-065'],
      stationMap['05-066'],
      stationMap['05-014'],
    ],
  }),
  new Route({
    id: 25,
    name: '长珲城际',
    color: 'green',
    line_number: 3,
    speed: 250,
    points: [
      stationMap['04-001'],
      stationMap['04-006'],
      stationMap['04-007'],
      stationMap['04-008'],
      stationMap['04-013'],
      stationMap['04-014'],
      stationMap['04-009'],
      stationMap['04-010'],
      stationMap['04-011'],
      stationMap['04-012'],
    ],
  }),
  new Route({
    id: 26,
    name: '石济客专',
    color: 'green',
    line_number: 2,
    speed: 250,
    points: [
      stationMap['06-001'],
      stationMap['06-045'],
      stationMap['06-046'],
      stationMap['11-004'],
      stationMap['11-001'],
    ],
  }),
  new Route({
    id: 27,
    name: '石太客专',
    color: 'green',
    line_number: 2,
    speed: 250,
    points: [
      stationMap['06-001'],
      stationMap['10-009'],
      stationMap['10-003'],
    ],
  }),
  new Route({
    id: 40,
    name: '连镇客专',
    color: 'green',
    line_number: 5,
    speed: 250,
    points: [
      stationMap['15-012'],
      stationMap['15-020'],
      stationMap['15-021'],
      stationMap['15-022'],
      stationMap['15-013'],
      stationMap['15-002'],
    ],
  }),
  new Route({
    id: 42,
    name: '徐盐高铁',
    color: 'green',
    line_number: 2,
    speed: 250,
    points: [
      stationMap['15-007'],
      stationMap['15-019'],
      stationMap['15-020'],
      stationMap['15-017'],
    ],
  }),
  new Route({
    id: 39,
    name: '青盐铁路',
    color: 'green',
    line_number: 2,
    speed: 200,
    points: [
      stationMap['11-020'],
      stationMap['15-012'],
      stationMap['15-018'],
      stationMap['15-017'],
      stationMap['15-014'],
      stationMap['15-015'],
      stationMap['15-016'],
    ],
  }),
]

let routesG = [
  new Route({
    id: 20,
    name: '沈丹高铁',
    color: 'red',
    line_number: 2,
    speed: 350,
    points: [
      stationMap['05-015'],
      stationMap['05-017'],
      stationMap['05-018'],
      stationMap['05-020'],
      stationMap['05-021'],
      stationMap['05-022'],
    ],
  }),
  new Route({
    id: 21,
    name: '丹大高铁',
    color: 'red',
    line_number: 2,
    speed: 350,
    points: [
      stationMap['05-022'],
      stationMap['05-024'],
      stationMap['05-025'],
      stationMap['05-027'],
      stationMap['05-028'],
      stationMap['05-030'],
      stationMap['05-031'],
      stationMap['05-035'],
      stationMap['05-036'],
    ],
  }),
  new Route({
    id: 22,
    name: '哈大高铁',
    color: 'red',
    line_number: 2,
    speed: 350,
    points: [
      stationMap['05-036'],
      stationMap['05-045'],
      stationMap['05-044'],
      stationMap['05-043'],
      stationMap['05-042'],
      stationMap['05-041'],
      stationMap['05-040'],
      stationMap['05-039'],
      stationMap['05-015'],
      stationMap['05-014'],
      stationMap['05-046'],
      stationMap['05-047'],
      stationMap['05-048'],
      stationMap['05-049'],
      stationMap['04-005'],
      stationMap['04-004'],
      stationMap['04-001'],
      stationMap['04-003'],
      stationMap['04-002'],
      stationMap['03-002'],
      stationMap['03-001'],
    ],
  }),
  new Route({
    id: 23,
    name: '京哈高铁',
    color: 'red',
    line_number: 2,
    speed: 350,
    points: [
      stationMap['01-001'],
      stationMap['01-002'],
      stationMap['06-007'],
      stationMap['06-008'],
      stationMap['05-067'],
      stationMap['05-068'],
      stationMap['05-069'],
      stationMap['05-070'],
      stationMap['05-071'],
      stationMap['05-072'],
      stationMap['05-014'],
    ],
  }),
  new Route({
    id: 25,
    name: '京唐城际',
    color: 'red',
    line_number: 2,
    speed: 350,
    points: [
      stationMap['01-020'],
      stationMap['06-003'],
      stationMap['06-004'],
      stationMap['06-005'],
      stationMap['06-006'],
    ],
  }),
  new Route({
    id: 26,
    name: '京沪高铁',
    color: 'red',
    line_number: 3,
    speed: 350,
    points: [
      stationMap['01-021'],
      stationMap['06-030'],
      stationMap['02-002'],
      stationMap['06-031'],
      stationMap['11-004'],
      stationMap['11-001'],
      stationMap['11-005'],
      stationMap['11-006'],
      stationMap['11-007'],
      stationMap['15-007'],
      stationMap['13-011'],
      stationMap['13-012'],
      stationMap['13-013'],
      stationMap['15-001'],
      stationMap['15-002'],
      stationMap['15-003'],
      stationMap['15-004'],
      stationMap['15-005'],
      stationMap['15-006'],
      stationMap['20-002'],
      stationMap['20-001'],
    ],
  }),
  new Route({
    id: 27,
    name: '京津高铁',
    color: 'red',
    line_number: 2,
    speed: 350,
    points: [
      stationMap['01-021'],
      stationMap['02-006'],
      stationMap['02-001'],
      stationMap['02-003'],
    ],
  }),
  new Route({
    id: 28,
    name: '京广高铁',
    color: 'red',
    line_number: 4,
    speed: 350,
    points: [
      stationMap['01-023'],
      stationMap['06-025'],
      stationMap['06-026'],
      stationMap['06-027'],
      stationMap['06-028'],
      stationMap['06-029'],
      stationMap['06-001'],
      stationMap['06-032'],
      stationMap['06-033'],
      stationMap['06-034'],
      stationMap['12-004'],
      stationMap['12-003'],
      stationMap['12-002'],
      stationMap['12-001'],
      stationMap['12-005'],
      stationMap['12-006'],
      stationMap['12-007'],
      stationMap['12-008'],
      stationMap['12-009'],
      stationMap['16-003'],
      stationMap['16-001'],
    ],
  }),
  new Route({
    id: 29,
    name: '济郑高铁',
    color: 'red',
    line_number: 4,
    speed: 350,
    points: [
      stationMap['12-002'],
      stationMap['12-020'],
      stationMap['12-021'],
      stationMap['11-002'],
      stationMap['11-003'],
      stationMap['11-001'],
    ],
  }),
  new Route({
    id: 30,
    name: '津秦高铁',
    color: 'red',
    line_number: 5,
    speed: 300,
    points: [
      stationMap['02-003'],
      stationMap['02-004'],
      stationMap['06-006'],
      stationMap['06-010'],
      stationMap['06-011'],
      stationMap['06-009'],
    ],
  }),
  new Route({
    id: 31,
    name: '北京环铁',
    color: 'red',
    line_number: 6,
    speed: 350,
    points: [
      stationMap['01-020'],
      stationMap['01-021'],
      stationMap['01-023'],
      stationMap['01-022'],
      stationMap['01-020'],
      stationMap['01-001'],
    ],
  }),
  new Route({
    id: 32,
    name: '大西高铁',
    color: 'red',
    line_number: 7,
    speed: 250,
    points: [
      stationMap['06-049'],
      stationMap['10-019'],
      stationMap['10-004'],
      stationMap['10-015'],
      stationMap['10-008'],
      stationMap['10-016'],
      stationMap['10-013'],
      stationMap['10-007'],
      stationMap['10-003'],
      stationMap['10-014'],
      stationMap['10-017'],
      stationMap['10-006'],
      stationMap['10-012'],
      stationMap['10-005'],
      stationMap['10-018'],
      stationMap['14-006'],
      stationMap['14-002'],
    ],
  }),
  // 山东省
  new Route({
    id: 33,
    name: '德龙烟铁路',
    color: 'red',
    line_number: 2,
    speed: 300,
    points: [
      stationMap['11-004'],
      stationMap['11-013'],
      stationMap['11-014'],
      stationMap['11-017'],
      stationMap['11-018'],
      stationMap['11-015'],
      stationMap['11-016'],
    ],
  }),
  new Route({
    id: 34,
    name: '新石线',
    color: 'red',
    line_number: 2,
    speed: 300,
    points: [
      stationMap['11-015'],
      stationMap['11-019'],
      stationMap['11-012'],
      stationMap['11-020'],
      stationMap['11-021'],
      stationMap['11-006'],
    ],
  }),
  new Route({
    id: 35,
    name: '胶济客专',
    color: 'red',
    line_number: 2,
    speed: 300,
    points: [
      stationMap['11-001'],
      stationMap['11-010'],
      stationMap['11-011'],
      stationMap['11-012'],
    ],
  }),
  new Route({
    id: 36,
    name: '郑太高铁',
    color: 'red',
    line_number: 2,
    speed: 300,
    points: [
      stationMap['10-014'],
      stationMap['10-020'],
      stationMap['10-010'],
      stationMap['10-011'],
      stationMap['12-012'],
      stationMap['12-001'],
    ],
  }),
  // 
  new Route({
    id: 37,
    name: '徐州-兰州-新疆高铁',
    color: 'red',
    line_number: 4,
    speed: 320,
    points: [
      stationMap['15-012'],
      stationMap['15-011'],
      stationMap['15-010'],
      stationMap['15-007'],
      stationMap['13-010'],
      stationMap['12-013'],
      stationMap['12-014'],
      stationMap['12-015'],
      stationMap['12-001'],
      stationMap['12-016'],
      stationMap['12-017'],
      stationMap['12-018'],
      stationMap['12-019'],
      stationMap['14-003'],
      stationMap['14-002'],
      stationMap['14-001'],
      stationMap['14-004'],
      stationMap['14-005'],
      stationMap['17-006'],
      stationMap['17-007'],
      stationMap['17-001'],
      stationMap['17-008'],
      stationMap['17-005'],
      stationMap['17-003'],
      stationMap['17-009'],
      stationMap['17-002'],
    ],
  }),
  // 宁启高铁
  new Route({
    id: 41,
    name: '宁启高铁',
    color: 'red',
    line_number: 2,
    speed: 300,
    points: [
      stationMap['15-001'],
      stationMap['15-013'],
      stationMap['15-014'],
      stationMap['15-015'],
      stationMap['15-016'],
    ],
  }),
  new Route({
    id: 42,
    name: '哈齐高铁',
    color: 'red',
    line_number: 2,
    speed: 200,
    points: [
      stationMap['03-004'],
      stationMap['03-003'],
      stationMap['03-015'],
      stationMap['03-001'],
      stationMap['03-017'],
      stationMap['03-018'],
      stationMap['03-006'],
      stationMap['03-019'],
      stationMap['03-007'],
    ],
  }),
  // 京包高铁
  new Route({
    id: 43,
    name: '京包高铁',
    color: 'red',
    line_number: 2,
    speed: 350,
    points: [
      stationMap['01-024'],
      stationMap['01-025'],
      stationMap['06-050'],
      stationMap['06-049'],
      stationMap['07-004'],
      stationMap['07-002'],
      stationMap['07-005'],
      stationMap['07-001'],
      stationMap['07-003'],
    ],
  }),
  // 陕西
  new Route({
    id: 44,
    name: '包头西安高铁',
    color: 'red',
    line_number: 2,
    speed: 350,
    points: [
      stationMap['07-003'],
      stationMap['07-007'],
      stationMap['14-008'],
      stationMap['14-009'],
      stationMap['14-010'],
      stationMap['14-011'],
      stationMap['14-012'],
      stationMap['14-001'],
    ],
  }),
  new Route({
    id: 45,
    name: '武西高铁',
    color: 'red',
    line_number: 2,
    speed: 350,
    points: [
      stationMap['14-001'],
      stationMap['14-013'],
      stationMap['14-014'],
      stationMap['16-002'],
      stationMap['16-010'],
      stationMap['16-008'],
      stationMap['16-007'],
      stationMap['16-006'],
      stationMap['16-004'],
      stationMap['16-001']
    ],
  }),
];

let routes = [...routesN, ...routesD, ...routesG];

routes = calculateRoutes(routes);

export { routes, routesN, routesD, routesG };
